//
//  PaymentMethedCell.m
//  WalletAPP
//
//  Created by 罗弟祥 on 2019/10/9.
//  Copyright © 2019 罗弟祥. All rights reserved.
//

#import "PaymentMethedCell.h"

@implementation PaymentMethedCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.switchView.transform = CGAffineTransformMakeScale(0.6, 0.6);

}

-(void)loadData:(PaymentMethodModel *)model indexPath:(NSIndexPath *)indexPath{
    self.bankNameL.text = model.payname;
    self.bankNoL.text = model.account;
    
    NSString *imgStr = [NSString stringWithFormat:@"icon_payment_%@", model.type];
    self.logoImgV.image = IMAGE(imgStr);
    
    self.switchView.on = model.status;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
